<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>原始内容</p>
    <button>点击更改</button>

    <script>
        const p = document.querySelector('p')
        const btn = document.querySelector('button')

        btn.addEventListener('click',function(){
            p.innerHTML = '修改了'
            setInterval(function(){
                p.innerHTML = '原始内容'
            },3000)
        })
    </script>
</body>
</html>